emellor@ewan [Wed, 12 Oct 2005 10:51:52 +0000 (11:51 +0100)]
Added missing __init__.py.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 10:47:16 +0000 (11:47 +0100)]
Fix vcpu-hotplug xenbus watch handler and setup.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 10:13:00 +0000 (11:13 +0100)]
Better cast for ptr->int in residerfs module.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 10:07:37 +0000 (11:07 +0100)]
Fix Xen public interfaces and the tools to consistently
use stdint-format bitsize types (uint32_t and friends).
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 09:11:35 +0000 (10:11 +0100)]
Fix deadlock in XendDomainInfo when a domain is cleaned up. We are renaming
the domain, to make it clear that it is a zombie, but this renaming cannot
check the uniqueness of the new name, because this causes a deadlock with
XendDomain. Instead, we allow the name to be non-unique for the case of
zombie domains.
Change the locking in waitForShutdown and state_set to be robust in the face of
exceptions.
Rename the STATE_VM_ constants to STATE_DOM_.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 09:08:01 +0000 (10:08 +0100)]
Change import that was confusing pylint (this is a pylint bug, I think).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 09:07:04 +0000 (10:07 +0100)]
Issue diagnostics if xm is being run as a non-root user. This used to happen,
but the triggering error has moved, so the diagnostics were broken.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:34:27 +0000 (09:34 +0100)]
Fix compilation problems with xenstore.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:33:03 +0000 (09:33 +0100)]
This patch implements select() functionality on /dev/vtpm and fixes some
other problems.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:31:53 +0000 (09:31 +0100)]
Fix PAE overflow in xc_linux_build.
Signed-off-by: srparish@us.ibm.com
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:29:52 +0000 (09:29 +0100)]
Error print on err path.
Signed-off-by: srparish@us.ibm.com
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:28:12 +0000 (09:28 +0100)]
The NAT scripts currently work, but the changes below decrease user
error and allow the netmask to be passed in.
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:27:28 +0000 (09:27 +0100)]
Hide the VMX cpu feature from unmodified Guests.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
djm@kirby.fc.hp.com [Tue, 11 Oct 2005 22:57:44 +0000 (16:57 -0600)]
Merged
djm@kirby.fc.hp.com [Tue, 11 Oct 2005 21:50:21 +0000 (15:50 -0600)]
Fixes for correct itir handling in vcpu_translate (broke simulator)
emellor@ewan [Tue, 11 Oct 2005 14:23:19 +0000 (15:23 +0100)]
Merged.
emellor@ewan [Tue, 11 Oct 2005 14:01:43 +0000 (15:01 +0100)]
Bring out the common console-handling code from main.py and create.py.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 11 Oct 2005 13:59:52 +0000 (14:59 +0100)]
Added auxbin module, for handling auxillary binaries.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 11 Oct 2005 13:57:28 +0000 (14:57 +0100)]
Remove bang path.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 11 Oct 2005 13:55:12 +0000 (14:55 +0100)]
Allow parallel 32- and 64-bit Xen installations. Move xc_save, xc_restore,
and xenconsole out of /usr/libexec/xen and into one of /usr/lib/xen/bin or
/usr/lib64/xen/bin. Remove all the PATH hacking inside Xend, and rely upon
the PATH being set correctly from outside. Added an auxbin module for
handling the hacky stuff.
Replace the few /usr/bin/python bang paths with /usr/bin/env python.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
jrb44@freefall.cl.cam.ac.uk [Tue, 11 Oct 2005 13:26:23 +0000 (14:26 +0100)]
Added xsls to xenstore Makefile install dependencies to fix "make dist".
Signed-off-by: James Bulpin <james@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Oct 2005 13:14:54 +0000 (14:14 +0100)]
Publish the virtual console interface in public/io/console.h.
Make the ring buffers a powe-of-two in size.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Oct 2005 12:02:59 +0000 (13:02 +0100)]
Xenstore client library spawns a reader thread the first
time a watch is registered. Before this it is fine for
caller threads to read the comms channel directly as no
async messages will be received.
This avoids various user tools needlessly creating three
threads where one will do the job.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Oct 2005 11:39:03 +0000 (12:39 +0100)]
Echo request and transaction identifiers in xenstored
replies (and set to zero for async watch events).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Oct 2005 10:59:15 +0000 (11:59 +0100)]
Fix xenbus internal join() function to be concurrency safe
(no static string buffer).
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Tue, 11 Oct 2005 09:33:31 +0000 (10:33 +0100)]
Added missing global statement, to ensure that the logfilename variable is
updated.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 11 Oct 2005 09:32:03 +0000 (10:32 +0100)]
Fix broken xm commands.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 11 Oct 2005 09:30:13 +0000 (10:30 +0100)]
Added doccomment.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 11 Oct 2005 09:29:29 +0000 (10:29 +0100)]
Added xsls utility, which recursively lists the contents of the store.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Oct 2005 09:03:54 +0000 (10:03 +0100)]
Fix 64-bit compile of pygrub. From Charles Duffy.
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Oct 2005 09:01:23 +0000 (10:01 +0100)]
Fix the legacy %-build targets for dist installation of
guest kernels.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Mon, 10 Oct 2005 23:03:00 +0000 (00:03 +0100)]
Fix for "unsubscriptable object" error, courtesy of Kurt Garloff
<garloff@suse.de> -- missing comma in op_mem_target_set.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 20:45:31 +0000 (21:45 +0100)]
Fix changeset banner for source tarballs.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 20:08:16 +0000 (21:08 +0100)]
Local repo version number in Xen boot log.
Signed-off-by: Dan Smith <danms@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 19:56:46 +0000 (20:56 +0100)]
Kernel makefiles do not define $(LN).
Signed-off-by: Rik van Riel <riel@redhat.com>
emellor@ewan [Mon, 10 Oct 2005 18:06:14 +0000 (19:06 +0100)]
This patch fixes an error in the xm create path when the
xc.domain_create call fails (eg, when ACM policy prevents creation of a
domain). When xc.domain_create fails, dompath never gets set.
Signed-off-by: Tom Lendacky <toml@us.ibm.com>
emellor@ewan [Mon, 10 Oct 2005 18:04:03 +0000 (19:04 +0100)]
When a domain is introduced to xenstored, check whether this has already
happened, and only return EINVAL if the event channel details have changed.
This allows Xend to introduce domains when it starts without having to be
concerned about whether xenstored has restarted at the same time. This
behaviour used to be subsumed by the bind_interdomain semantics for existing
channels, but in the simplification of that interface, the check must now move
to userspace.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Mon, 10 Oct 2005 17:59:57 +0000 (18:59 +0100)]
Mention -s option in usage.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Mon, 10 Oct 2005 17:58:46 +0000 (18:58 +0100)]
Fix completely broken xenstore_read function.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 17:16:03 +0000 (18:16 +0100)]
Fix cancellation of pending watch events on watch unregistration.
Use wait_event_interruptible() so that our kernel threads spend
their time in the more acceptable 'S' state rather than the more
worrying 'D' state.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 15:57:41 +0000 (16:57 +0100)]
Fire watch callbacks on their own workqueue. Mainly this is
to make debugging easier (it's hard if an error takes out
the default workqueue!). Also, watch callbacks can be
arbitrarily long-lived, so it's more polite.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Mon, 10 Oct 2005 15:16:41 +0000 (16:16 +0100)]
Merged.
emellor@ewan [Mon, 10 Oct 2005 15:15:48 +0000 (16:15 +0100)]
Rewritten XendLogging to not be a singleton class, and not have methods used
from nowhere at all.
Log to a temporary file if permission is denied to log to /var/log/xend.log,
as happens when you are not root. Fixes bug #305.
Remove all the log-related garbage from XendRoot -- just about every module
was going straight to XendLogging.log already, so there was no need to have
XendRoot replicate this functionality.
Remove XendRoot.event_handler, which hasn't been in use since the EventServer
was removed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 14:38:01 +0000 (15:38 +0100)]
xenstored now supports multiple concurrent transactions per
connection, plus interleaving of transactional and
non-transactional accesses. A transaction identifier is added
to the xsd_sockmsg header structure (0 means 'not in context
of a transaction'). The user and kernel xs interfaces accept
a pointer to a transaction handle where appropriate --
currently this is directly cast to an integer identifier in
the client library / kernel driver, but will allow for keeping
extra dynamic client-side state in future if we need to.
The transaction mutex has now gone. It's replaced with a
read-write mutex, but this is only acquired for exclusive
access during suspend/resume, to ensure there are no in-progress
transactions.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Mon, 10 Oct 2005 13:46:53 +0000 (14:46 +0100)]
Merged.
emellor@ewan [Mon, 10 Oct 2005 13:42:38 +0000 (14:42 +0100)]
Added error logging to the block hotplug script, and support facilities for
that.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 10:37:10 +0000 (11:37 +0100)]
No need to gate xenstored reading requests from a
connection on whether there are pending replies/watches.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 9 Oct 2005 22:53:03 +0000 (23:53 +0100)]
Simplify reply logic in xenstored. Maintain a linked list
of pending replies that are sent out in order.
Currently we only read new requests when the reply list is
empty. In fact there is no good reason for this restriction.
Another interesting point is that (on my test machine)
hotplug blk setup fails if xenstored_client connects to
xenstored via the unix domain socket rather than through the
kernel --- this points to some user/kernel races that are
'fixed' by the extra serialisation of the in-kernel mutexes.
It definitely needs looking into.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 9 Oct 2005 20:29:10 +0000 (21:29 +0100)]
Extend xenbus/xenstore client interface to include a transaction
handle on appropriate operations. Next step is to plug this
through to the store daemon and get rid of the nasty serialisation
mutex for transactions.
Signed-off-by: Keir Fraser <keir@xensource.com>
smh22@firebug.cl.cam.ac.uk [Sun, 9 Oct 2005 19:55:53 +0000 (20:55 +0100)]
Added some clarifying comments regarding xenbus/xenstore kernel startup.
Signed-off-by: Steven Hand <steven@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 9 Oct 2005 17:52:54 +0000 (18:52 +0100)]
Refactor xenbus to break up the xenbus_lock and permit watches
to fire concurrently with request/reply pairs. Remove
watch_ack message: no longer needed.
Signed-off-by: Keir Fraser <keir@xensource.com>
vh249@kneesaa.uk.xensource.com [Sun, 9 Oct 2005 16:29:24 +0000 (12:29 -0400)]
Don't increment mi->usage is alloc_major_info return NULL
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
smh22@firebug.cl.cam.ac.uk [Sun, 9 Oct 2005 15:26:08 +0000 (16:26 +0100)]
Fix cpu hotplug issue with SMP guests (including save/restore).
Was a nasty one - worth ensuring we cast to u64 whenever playing
with Xen time values.
Signed-off-by: Steven Hand <steven@xensource.com>
djm@kirby.fc.hp.com [Sun, 9 Oct 2005 15:04:49 +0000 (09:04 -0600)]
Convert a few privops to existing hyperprivops in xenlinux
emellor@ewan [Sun, 9 Oct 2005 11:20:12 +0000 (12:20 +0100)]
Alter logging statements to move the interpolation inside the logging function,
meaning that it will only occur if the message is to be logged.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 11:16:23 +0000 (12:16 +0100)]
Remove unnecessary extraction of ssidref from config inside restore -- this
is now handled by the construct call, which restore has recently started using.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 11:14:46 +0000 (12:14 +0100)]
/home/emellor/log2
emellor@ewan [Sun, 9 Oct 2005 10:59:37 +0000 (11:59 +0100)]
Remove cruft.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 10:57:24 +0000 (11:57 +0100)]
Remove code seeding RNG from /dev/urandom. The random module's default RNG is
already seeded from the clock, so this is unnecessary, non-portable, and
expensive. This should improve start-up time of Xend. Replace twisty maze of
code with something sensible.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 10:53:34 +0000 (11:53 +0100)]
Append a newline to error messages, so that they are parsed by XendCheckpoint.py
correctly.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 10:52:24 +0000 (11:52 +0100)]
Change xenbus callbacks to match new signature of xenbus_watch.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
djm@kirby.fc.hp.com [Sun, 9 Oct 2005 04:55:14 +0000 (22:55 -0600)]
Still more updating ia64 to xen-unstable
djm@kirby.fc.hp.com [Sun, 9 Oct 2005 04:28:02 +0000 (22:28 -0600)]
More updating ia64 to latest xen-unstable
djm@kirby.fc.hp.com [Sat, 8 Oct 2005 20:28:56 +0000 (14:28 -0600)]
Update ia64 to keep up with core changes
djm@kirby.fc.hp.com [Sat, 8 Oct 2005 20:28:24 +0000 (14:28 -0600)]
Merge
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Oct 2005 18:19:27 +0000 (19:19 +0100)]
Make libxenstore thread-safe. It also spawns an internal
thread to read messages from the comms channel.
Signed-off-by: Keir Fraser <keir@xensource.com>
djm@kirby.fc.hp.com [Sat, 8 Oct 2005 17:37:45 +0000 (11:37 -0600)]
Add support for fast mov_to_kr privops
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Oct 2005 09:22:01 +0000 (10:22 +0100)]
Fix locking in /dev/xen/evtchn ioctl.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Oct 2005 08:54:06 +0000 (09:54 +0100)]
Add one more parameter to __vmread_vcpu and clean some code.
Signed-off-by: Xin Xiaohui <Xiaohui.xin@intel.com>
Signed-off-by: Li Chengyuan <Chengyuan.li@intel.com>
Signed-off-by: Nakajima Jun <jun.nakajima@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Oct 2005 08:51:43 +0000 (09:51 +0100)]
Add a bzImage target for xen kernels for consistency with
native architectures.
Signed-off-by: Rik van Riel <riel@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Oct 2005 08:49:28 +0000 (09:49 +0100)]
Xen-friendly glibc selection: appropriate ld-linux can parse
the vsyscall page ELF notes and use the "nosegneg" glibc variant
to ensure that things work fine.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Roland McGrath <roland@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 22:36:26 +0000 (23:36 +0100)]
Remove linux-2.4 sparse tree.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 22:22:35 +0000 (23:22 +0100)]
Some cleanup in TPM-related files and implementation of functionality that
got lost when switching to xenbus.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 22:21:23 +0000 (23:21 +0100)]
Re-enable the pygrub build and fix the build with older
e2fsprogs (tested on RHEL4 with e2fsprogs-1.35 and rawhide
with e2fsprogs-1.38)
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 22:17:24 +0000 (23:17 +0100)]
Move mmio operation structure from domain to vcpu.
Also do some cleanup.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Nakajima Jun <nakajima.jun@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 15:49:29 +0000 (16:49 +0100)]
Rationalise xenstore header files a little. xenstored.h,
which defines aspects of the 'wire' protocol between
xs daemon and clients in user and kernel land, is now
xs_wire.h and moved to xen's public/io directory. From there
it is more easily accessible by kernels.
Signed-off-by: Keir Fraser <keir@xensource.com>
djm@kirby.fc.hp.com [Fri, 7 Oct 2005 15:40:37 +0000 (09:40 -0600)]
Reset hypercall_continuation flag (by Tristan Gingold)
djm@kirby.fc.hp.com [Fri, 7 Oct 2005 15:37:41 +0000 (09:37 -0600)]
Fix incorrect re-enablement of interrupts (found by Tristan Gingold)
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 14:52:43 +0000 (15:52 +0100)]
Update kernel watch API to pass the array of watch arguments to the callback
instead of just passing the node.
This allows us to extend watches to have additional arguments (like domids).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 14:51:53 +0000 (15:51 +0100)]
Change xs_read_watch interface to return a sized array (in userspace and in
kernel).
Add index macros (XS_WATCH_*) for accessing the array to allow for future
expansion.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 14:49:33 +0000 (15:49 +0100)]
Clean up file vmx.c:
1) change d to v.
2) remove trailing spaces.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 13:47:45 +0000 (14:47 +0100)]
Add installation of the udev rules if appropriate. With a normal 'make
install', the udev rules will be installed if udev version is >= 059;
otherwise, the hotplug rules get installed.
When 'make dist' is done, we set a variable so that both hotplug and
udev rules are installed into the dist tarball. install.sh then takes
care of picking the proper rules.
Also changes the hotplug check to look for a proper udev version
Signed-off-by: Jeremy Katz <katzj@redhat.com>
emellor@ewan [Fri, 7 Oct 2005 12:34:45 +0000 (13:34 +0100)]
Merged.
emellor@ewan [Fri, 7 Oct 2005 12:34:10 +0000 (13:34 +0100)]
Regig the construction of new domains so that restore and create can share the
construct method. This ensures that the domain will have any stale paths in
the store removed on restore.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 12:15:52 +0000 (13:15 +0100)]
Add udev rules that map similar to the hotplug agent. Based off of what
Chris Bainbridge posted the end of last week but doing things as
directly as possible.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 12:13:58 +0000 (13:13 +0100)]
Move the block-phy and block-file handling into a common
block script that gets called by the hotplug agent.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 12:11:41 +0000 (13:11 +0100)]
The hotplug agent sets the path now, but that's not as practical to do
with udev rules. So instead, make sure that the path is set in the vif
scripts themselves.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 10:54:38 +0000 (11:54 +0100)]
Remove bind_evtchn_to_irq/unbind_evtchn_from_irq from the
evtchn kernel interface. Fix error path in bind_evtchn_to_irqhandler.
Fix backend drivers to avoid double freeing IRQs.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 10:16:28 +0000 (11:16 +0100)]
The attached fixes a few things to make the blkfront and netfront
drivers better follow the Linux driver model. Changes include:
* Rename xenbus_register functions to more closely match what's used
with other buses. Adjust callers
* There's no need to wait for the first vbd of vif and do a timeout if
they fail, device probing is async
* Add sysfs attributes for examining type and nodename
* Set device of gendisk so /sys/block/foo/device points to the right
place
* Set device of net_device so that /sys/class/net/foo/device points to
the right place
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 10:04:41 +0000 (11:04 +0100)]
merge.
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 10:03:56 +0000 (11:03 +0100)]
This patch copies the NAT scripts in tools/examples/ to
/etc/xen/scripts/.
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
emellor@ewan [Fri, 7 Oct 2005 10:02:09 +0000 (11:02 +0100)]
Merge.
emellor@ewan [Fri, 7 Oct 2005 10:01:23 +0000 (11:01 +0100)]
Merge.
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 10:00:56 +0000 (11:00 +0100)]
Move construct_vmcs to arch_vmx_do_launch.
Currently, since VMX guest is brought up by xen0, construct_vmcs is
executed in xen0 hypervisor context, this is not reasonable. This=20
patch moves construct_vmcs to arch_vmx_do_launch.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Nakajima Jun <nakajima.jun@intel.com>
emellor@ewan [Fri, 7 Oct 2005 09:58:41 +0000 (10:58 +0100)]
Rename the source domain on migration, regardless of the live flag. This fixes
localhost non-live migration, and bug #297.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 09:57:13 +0000 (10:57 +0100)]
Big simplification of the Xen event-channel interface.
EVTCHNOP_bind_interdomain in particular is much simpler.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Thu, 6 Oct 2005 23:21:00 +0000 (00:21 +0100)]
Fix conflicting merge.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Thu, 6 Oct 2005 18:43:11 +0000 (19:43 +0100)]
Merged.
emellor@ewan [Thu, 6 Oct 2005 18:41:29 +0000 (19:41 +0100)]
Remove xm commands block-refresh and vbd-refresh, as these are unsupported.
Allow xm block-detach to take a device name as well as a device ID. This
closes bug #285 and fixes xm-test's 01_block-destroy_btblock_pos.py and
02_block-destroy_rtblock_pos.py.
Rename and reconnect XendDomainInfo.configureDevice to reconfigureDevice.
There is nothing using this at the moment, mind you.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Oct 2005 16:02:38 +0000 (17:02 +0100)]
User tools send evtchn notifications via /dev/xen/evtchn
rather than using hypercall directly.
Signed-off-by: Keir Fraser <keir@xensource.com>